# coding: utf-8
from sqlalchemy import Column, Integer, String

from apps.models.base import db

class Course(db.Model):
    __tablename__ = 'course'

    id = Column(Integer, primary_key=True, autoincrement=True)
    level_id = Column(Integer, nullable=False)
    cate_id = Column(Integer, nullable=False)
    name = Column(String(20), nullable=False)
    status = Column(Integer, nullable=False, default=1)
